package com.lesso.lpq.sunflower.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * DeviceDTO
 * 设备基础信息传输对象
 *
 * @author 罗培棋
 * @since 2025-07-05
 */
@Data
public class DeviceDTO implements Serializable {
    private static final long serialVersionUID = 20250705L;

    @NotBlank(message = "设备编码不能为空")
    @Length(min = 1, max = 50, message = "设备编码长度应在 1 - 50 个字符之间")
    private String deviceCode;

    @NotBlank(message = "设备名称不能为空")
    @Length(min = 1, max = 100, message = "设备名称长度应在 1 - 100 个字符之间")
    private String deviceName;


}